
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemEventRequest struct {

	Name string `json:"name" form:"name"`

	Mark string `json:"mark" form:"mark"`

	Content string `json:"content" form:"content"`

	AddTime string `json:"add_time" form:"add_time"`

	IsDel string `json:"is_del" form:"is_del"`

	IsOpen string `json:"is_open" form:"is_open"`

	Customcode string `json:"customCode" form:"customCode"`

}

func (r *SystemEventRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemEventRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"name": "required",

		"mark": "required",

		"content": "required",

		"add_time": "required",

		"is_del": "required",

		"is_open": "required",

		"customCode": "required",

	}
}

func (r *SystemEventRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemEventRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemEventRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
